import { Pipe, PipeTransform } from '@angular/core';

/**
 * 平台
 * 1:ios 2:Android 3:Windows
 */
@Pipe({ name: 'platformProStatus' })
export class PlatformProStatusPipe implements PipeTransform {
  transform(value: any, exponent?: number): any {
    switch(value) {
      case 1:
        return 'ios';
      case 2:
        return 'Android';
      case 3:
        return 'Windows';
      default:
        return '-';
    }
  }
}